package com.groupa.project1.chat;

import com.groupa.project1.chat.interfaces.UserContent;
import com.groupa.project1.database.PhotoClass;
import java.io.Serializable;

/**
 *
 * @author groupA
 */
public class UserContentMessage extends Msg implements UserContent,Serializable{
    /** Implementacion de la interfaz UserContent */
    
    PhotoClass P;
    String path;
    
    public UserContentMessage(PhotoClass P,String path){
    
        this.P = P;
        this.path = path;  
    }
    
    public String getPath(){
        return path;
    }
    
    public PhotoClass getPhoto(){
        return  P;
    }
}